package com.sicpa.system.mapper;

import com.sicpa.common.core.domain.entity.AntiCounterfeitingProcessRecord;
import org.apache.ibatis.annotations.Param;

/**
 * AntiCounterfeitingProcessRecordMapper
 * @author lwf
 */
public interface AntiCounterfeitingProcessRecordMapper {

    /**
     * 删除
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 动态新增
     * @param record
     * @return
     */
    int insertSelective(AntiCounterfeitingProcessRecord record);

    /**
     * 单个查询
     * @param id
     * @return
     */
    AntiCounterfeitingProcessRecord selectByPrimaryKey(Integer id);

    /**
     * 动态修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(AntiCounterfeitingProcessRecord record);


    /**
     * 获取原由
     * @param optItemId
     * @param optItem
     * @param optResults
     * @return
     */
    String getReasonByItemIdAndItem(@Param("optItemId") Long optItemId, @Param("optItem") String optItem, @Param("optResults") String optResults);

    /**
     * 获取操作人
     * @param optItemId
     * @param optItem
     * @param optResults
     * @return
     */
    String getUserByItemIdAndItem(@Param("optItemId") Long optItemId, @Param("optItem") String optItem, @Param("optResults") String optResults);

}